<?php
/* @var $this ContactController */
/* @var $model Contact */
/* @var $form CActiveForm */
?>

<div class="sub-page">
    <h2>Contact</h2>
    <?php if(Yii::app()->user->hasFlash('success')):?>
        <div class="info">
            <?php echo Yii::app()->user->getFlash('success'); ?>
        </div>
    <?php endif; ?>
    <div class="all-product">
        <p>
            Customer Service: +1 800 559 6580<br />
            9870 St Vincent Place,<br />
            Glasgow, DC 45 Fr 45.<br />
        </p>
        <hr>
        <p>
            <strong>Contact Us Sample Text ...</strong><br />
            This section of text is from the Define Pages Editor located under Tools in the Admin.<br />
            To remove this section of the text, delete it from the Define Pages Editor.
        </p>
        <?php $form=$this->beginWidget('CActiveForm', array(
            'id'=>'contact-form',
            // Please note: When you enable ajax validation, make sure the corresponding
            // controller action is handling ajax validation correctly.
            // There is a call to performAjaxValidation() commented in generated controller code.
            // See class documentation of CActiveForm for details on this.
            'enableAjaxValidation'=>false,
        )); ?>

        <div class="contact">
            <div class="ct-title">Contact Us</div>
            <div class="form-style marT20">
                <p>
                    <?php echo $form->labelEx($model,'name'); ?>
                    <?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
                    <?php echo $form->error($model,'name'); ?>
                </p>
                <p>
                    <?php echo $form->labelEx($model,'email'); ?>
                    <?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>255)); ?>
                    <?php echo $form->error($model,'email'); ?>
                </p>
                <p>
                    <?php echo $form->labelEx($model,'message'); ?>
                    <?php echo $form->textArea($model,'message',array('rows'=>6, 'cols'=>50)); ?>
                    <?php echo $form->error($model,'message'); ?>
                </p>
                <p>
                    <label>&nbsp;</label>
                    <span>* Required information</span>
                </p>
                <p>
                    <label>&nbsp;</label>
                    <?php echo CHtml::submitButton('Send', array('class'=>'red-button')); ?>
                </p>
            </div>
        </div>

        <?php $this->endWidget(); ?>

    </div>

</div>